package com.yuewen.permissioncheck

import android.util.Log
import com.yuewen.permissioncheck.HookPermissionHelper
import com.yuewen.permissioncheck.PermissionCheckManager.notifyBroadcastMsg

/**
 * @author zhanglulu
 */
object HookPermissionHelper {

  @JvmStatic
  fun invokeGetLastKnownLocation() {
    notifyBroadcastMsg("当前位置[getLastKnownLocation]", Throwable())
  }
  @JvmStatic
  fun invokeLocationServices() {
    notifyBroadcastMsg("位置服务[getSystemService(LOCATION_SERVICE)]", Throwable())
  }
  @JvmStatic
  fun invokeGetMacAddress() {
    notifyBroadcastMsg("Mac地址[getMacAddress]", Throwable())
  }
  @JvmStatic
  fun invokePhoneState() {
    notifyBroadcastMsg("手机状态[getSystemService(TELEPHONY_SERVICE)]", Throwable())
  }
  @JvmStatic
  fun invokeGetImei() {
    notifyBroadcastMsg("IMEI[getImei]", Throwable())
  }
  @JvmStatic
  fun invokeGetSubscriberId() {
    notifyBroadcastMsg("SubscriberId[getSubscriberId, IMSI]", Throwable())
  }
  @JvmStatic
  fun invokeGetHardwareAddress() {
    notifyBroadcastMsg("HardwareAddress[getHardwareAddress]", Throwable())
  }
  @JvmStatic
  fun invokeGetDeviceId() {
    notifyBroadcastMsg("DeviceId[getDeviceId]", Throwable())
  }

  @JvmStatic
  fun invoke() {
    notifyBroadcastMsg("DeviceId[getDeviceId]", Throwable())
  }
}
